<div id="match">
  <h2>Record a Match</h2>
  <% form_for( @match, :url => { :action => 'create' }, :method => "post" ) do |m| %>
    <div id="match_form">
      <div id="image">IMA PICK-CHURE! IF YOU HOVER ON ME I GET BIG!<%#render the image %></div>
      <div id="info">
        <select name="match[map]">
          <% @maps.each do |map| %>
            <option onclick="new Ajax.Updater('teams', '/matches/add_teams/<%=map.id%>', {asynchronous:true, evalScripts:false, method:'get'}); return false;" value="<%=  map.id %>"><%=  map.name.to_s %></option>
          <% end %>
        </select>
      </div>
    </div>

    <div id="teams">
      No Map Selected

    </div>

    <div id="footer">
      <div id="notes">
        <%= m.text_area :notes %>
      </div>
      <div id="submit">
        <%= m.submit "Save", :class => "button" %>
      </div>
    </div>
  <% end %>
</div>